# _*_ coding : utf-8 _*_
#! /usr/etc/env python

def make():
    sentence = raw_input('Sentence : ')
    screen_width = 80
    text_width = len(sentence)
    box_width = text_width + 6
    left_margin = (screen_width - box_width) // 2
    print
    print ' ' * left_margin + '+' + '-' * (box_width - 2) + '+'
    print ' ' * left_margin + '|  ' + ' ' * text_width + '  |'
    print ' ' * left_margin + '|  ' + sentence + '  |'
    print ' ' * left_margin + '|  ' + ' ' * text_width + '  |'
    print ' ' * left_margin + '+' + '-' * (box_width - 2) + '+'


if __name__ == '__main__':
    make()
